package router

import (
	"api_gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func UserRouter(router *gin.RouterGroup) {
	{
		user := router.Group("user")
		{
			user.POST("register", api.Register)
			user.POST("login", api.Login)
			user.POST("addTest", api.AddTest)
			user.POST("updateTest", api.UpdateTest)
			user.POST("infoTest", api.InfoTest)
			user.POST("deleteTest", api.DeleteTest)
			user.POST("addPaper", api.AddPaper)
			user.POST("infoPaper", api.InfoPaper)
			user.POST("delPaper", api.DelPaper)
			user.POST("listPaper", api.ListPaper)
			user.POST("list", api.List)
			user.POST("info", api.Info)
			user.POST("add", api.Add)
			user.POST("infoTes", api.InfoTes)

		}
	}
}
